<?php
namespace app\admin\model;

use pidan\Model;
use pidan\model\concern\SoftDelete;

class Seller extends Model
{
	use SoftDelete;
	protected $name = 'user';
	protected $createTime = 'createtime';
	protected $updateTime = 'updatetime';
	protected $deleteTime = 'deletetime';
	protected $defaultSoftDelete = 0;
	public function getGenderAttr($value)
	{
		$gender=[0=>'保密',1=>'男','2'=>'女'];
		return lang('gender')[$value];
	}
	public function getLogintimeAttr($value)
	{
		return $value ? date('Y-m-d H:s',$value) :'';
	}
}